package com.example.mybatisplusdemo.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yrd
 * @since 2025-07-07
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@TableName("search_history")
@ApiModel(value = "SearchHistory对象", description = "")
public class SearchHistory implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField("user_id")
    private Long userId;

    @TableField("departure")
    private String departure;

    @TableField("destination")
    private String destination;

    @TableField("departure_date")
    private LocalDate departureDate;

    @TableField("return_date")
    private LocalDate returnDate;

    @TableField("search_time")
    private LocalDateTime searchTime;

    @TableField("result_count")
    private Integer resultCount;

    @TableField("is_deleted")
    private Boolean deleted;
}
